package org.hackystat.project;

import org.hackystat.utilities.time.period.Day;

/**
 * Represents the effort for a single day.
 * @author Cam Moore
 *
 */
public class DailyEffort {
  private Day day;
  private long effort;
  
  /**
   * Constructs a DailyEffort.
   * @param day a Day, the day.
   * @param effort a long the amount of effort.
   */
  public DailyEffort(Day day, long effort) {
    this.day = day;
    this.effort = effort;
  }

  /**
   * 
   * @return A String representation of this dailyeffort.
   * @see java.lang.Object#toString()
   */
  public String toString() {
    return day.toString() + ":" + effort;
  }
  /**
   * @return the day
   */
  public Day getDay() {
    return day;
  }

  /**
   * @param day the day to set
   */
  public void setDay(Day day) {
    this.day = day;
  }

  /**
   * @return the effort
   */
  public long getEffort() {
    return effort;
  }

  /**
   * @param effort the effort to set
   */
  public void setEffort(long effort) {
    this.effort = effort;
  }
  
}
